#ifndef __CONSOLE_USART_H
#define __CONSOLE_USART_H

#include <stdint.h>
#include "FreeRTOS.h"
#include "Task.h"
#include "semphr.h"

/* 重定义函数指针 */
typedef void (*usart_rx_callback_t)(uint8_t data);

void usart_sendbyte(uint8_t data);
void usart_init(uint32_t BaidRate);     //串口整体初始化,创建二值信号量与互斥信号量开启中断，初始化dma
void usart_send_strpack(char* arr);

void usart_recv_callback_register(usart_rx_callback_t cb);

#endif /* __CONSOLE_USART_H */
